<template>
  <TreeSelect :init-options="initOptions" multiple filterable :data="options" v-model="value" />
</template>

<script>
import TreeSelect from '../../components/TreeSelect.vue'
export default {
  name: 'Tree',
  components: {
    TreeSelect
  },
  data() {
    return {
      options:[
        {
          id: 1,
          label: '第一层',
          children: [
            {
              id: 2,
              label: '第二层-1'
            },
            {
              id: 3,
              label: '第二层-2'
            },
            {
              id: 4,
              label: '第二层-3'
            },
          ]
        },
      ],
      initOptions: [{
        id: 3,
        label: '第二层-2'
      }],
      value: [3],
      
    }
  },
  methods: {
  }
}
</script>
